package cn.kgc.springcloud.client;

import cn.kgc.springcloud.entity.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("class-city")
public interface CityClient {
    @GetMapping("/cities/{id}")
    City selectOne(@PathVariable Integer id);
}
